<%@ page language="java" contentType="text/html; charset=UTF-8"
         isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd" %>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<div class="wrap">
    <div>
        <div class="h_a">渠道数据异常记录</div>
        <a id="add" class="btn" ><span class="add"></span></a>
        <div id="addInvalidData" style="display: none">
            <form method="post" autocomplete="off"
                  action="${requestScope.FPWEB.rootPath }/market/channel/invalid/data/submit${requestScope.FPWEB.urlStuff}">
                <label>开始时间：</label>
                <input type="input" name="start_date" class="input length_1 mr10 J_date">
                <label>结束时间：</label>
                <input type="input" name="end_date" class="input length_1 mr10 J_date">
                <label>备注：</label>
                <input type="input" name="content" class="input length_6" value="数据异常">
                <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
            </form>
        </div>
        <div class="table_list">
            <table id="invalidData" width="100%">
                <thead>
                    <tr>
                        <td width="50">开始时间</td>
                        <td width="50">结束时间</td>
                        <td width="50">备注</td>
                        <td width="50">操作</td>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach items="${invalidData }" var="data">
                        <tr>
                            <td>${data.start_date} </td>
                            <td>${data.end_date} </td>
                            <td>${data.content} </td>
                            <td>
                                <a class="btn btn_orange" href="<yjd:url url="/market/channel/invalid/data/delete"/>?id=${data.id}">删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>

    </div>

    <script type="text/javascript">
        YJD.use('AppAdminCommon');
        YJD.use('AppBICommon');

        $("#add").click(function () {
            $("#addInvalidData").toggle();
        });

    </script>
</div>